import { request } from '@/request'

export const getEvent = <T extends object, R = any>(
  data: T
): Promise<IResponse<IList<R>>> => {
  return request.GET<T>({ url: '/events/list', params: data })
}

export const getEventInfo = <T extends object, R = any>(
  data: T
): Promise<IResponse<R>> => {
  return request.GET<T>({ url: '/events/event', params: data })
}
